<template>
  <div class="container">
    <div class="left">
      <router-link to="/slot">slot传参</router-link>
      <br />
      <router-link to="/proinject">provide和inject传参</router-link>
      <br />
      <router-link to="/props">props传参</router-link>
      <br />
      <router-link to="/event">自定义事件传参</router-link>
      <br />
      <router-link to="/mitt">全局事件总线mitt传参</router-link>
      <br />
      <router-link to="/pinia">pinia传参</router-link>
      <br />
      <router-link to="/vmodel">v-model传参</router-link>
      <br />
      <router-link to="/attrs">attrs传参</router-link>
      <br />
      <router-link to="/refs">refs和$parent传参</router-link>
    </div>
    <div class="right">
      <router-view></router-view>
    </div>
  </div>
</template>

<script setup lang="ts"></script>

<style scoped>
.container {
  display: flex;
  width: calc(100vw - 15px);
  height: calc(100vh - 20px);
}
.left {
  width: 200px;
  height: calc(100vh - 15px);
  margin-right: 2px;
  background: lightcyan;
  border: 1px solid lightgray;
}
.right {
  width: calc(100vw - 100px);
  height: calc(100vh - 13px);
  background: lightblue;
}
</style>
